package com.example.mine;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

@SpringBootApplication
@MapperScan("com.example.mine.mapper")
public class MineApplication extends SpringBootServletInitializer {

    public static Logger logger = LoggerFactory.getLogger(SpringBootServletInitializer.class);

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(MineApplication.class);
    }

    public static void main(String[] args) {
        SpringApplication.run(MineApplication.class, args);
        logger.info("\n"+
                " //.....................阿弥陀佛.......................//\n"+
                " //                     _oo0oo_                       //\n"+
                " //                    o8888888o                      //\n"+
                " //                    88\" . \"88                      // \n"+
                " //                    (| -_- |)                      //\n"+
                " //                    0\\  =  /0                      //\n"+
                " //                  ___/‘---’\\___                    //\n"+
                " //                 .' \\|       |/ '.                 // \n"+
                " //                / \\\\|||  :  |||// \\                //   \n"+
                " //               / _||||| -卍-|||||_ \\               // \n"+
                " //              |   | \\\\\\  -  /// |   |              //   \n"+
                " //              | \\_|  ''\\---/''  |_/ |              //  \n"+
                " //              \\  .-\\__  '-'  ___/-. /              //  \n"+
                " //            ___'. .'  /--.--\\  '. .'___            // \n"+
                " //        .\"\" ‘<  ‘.___\\_<|>_/___.’>’ \"\".            //   \n"+
                " //      | | :  ‘- \\‘.;‘\\ _ /’;.’/ - ’ : | |          //\n"+
                " //        \\  \\ ‘_.   \\_ __\\ /__ _/   .-’ /  /        //   \n"+
                " //   =====‘-.____‘.___ \\_____/___.-’___.-’=====      //\n"+
                " //                      ‘=---=’                      //\n"+
                " //..............佛祖保佑 ,永不宕机 ,永无BUG...........//");
    }

}
